-- GENERATED SPELL FOR [Vile Ooze] --


function spell0_7093(pUnit, Event) --@Poison Bolt,n/a--
pUnit:FullCastSpellOnTarget(21067,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7093', 12500, 1)
end

function spell1_7093(pUnit, Event) --@Poison Shock,n/a--
pUnit:FullCastSpellOnTarget(22595,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7093', 644, 1)
end

function Sorts_7093(pUnit, Event)
local choix_sorts_7093 = math.random(0, 1)
if choix_sorts_7093 == 0 then
pUnit:RegisterEvent('spell0_7093', 1, 1)
end
if choix_sorts_7093 == 1 then
pUnit:RegisterEvent('spell1_7093', 1, 1)
end
end

function mob7093_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7093', math.random(1500, 3000), 1)
end

function mob7093_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7093_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7093_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7093, 1, 'mob7093_Action')
RegisterUnitEvent(7093, 2, 'mob7093_Leave')
RegisterUnitEvent(7093, 3, 'mob7093_Kill')
RegisterUnitEvent(7093, 4, 'mob7093_Die')
